home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 5817 / 5817.xpi / chrome / content / tabDbInfo.xul < prev    next >
Extensible Markup Language  |  2010-02-11  |  11KB  |  299 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://sqlitemanager/skin/sqlitemanager.css" type="text/css"?>
  3.  
  4. <!DOCTYPE window SYSTEM "chrome://sqlitemanager/locale/tabDbInfo.dtd">
  5.  
  6. <overlay id="tabDbInfo-overlay"
  7.       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  8.  
  9.   <tabpanel id="dbInfoTab" flex="1">
  10.     <notificationbox id="boxNotifyDbInfo" flex="1">
  11.  
  12. <!--
  13. Omitted: case_sensitive_like, incremental_vacuum(N)
  14. -->
  15.   <vbox id="vb-dbInfoTab" flex="1" style="overflow:auto">
  16.    <groupbox>
  17.     <caption label="&versions;"/>
  18.     <hbox>
  19.       <label value="&schema_version;" class="dbinfo"/>
  20.       <textbox id="pr-schema_version" type="number"  value=""/>
  21.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('schema_version');" style="color:red;"/>
  22.     </hbox>
  23.     <hbox>
  24.       <label value="&user_version;" class="dbinfo"/>
  25.       <textbox id="pr-user_version" type="number"  value=""/>
  26.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('user_version');"/>
  27.     </hbox>
  28.    </groupbox>
  29.  
  30.    <groupbox>
  31.     <caption label="&pages;"/>
  32.     <hbox>
  33.       <label value="&page_size;" class="dbinfo"/>
  34.       <menulist id="pr-page_size">
  35.         <menupopup>
  36.           <menuitem label="512" value="512"/>
  37.           <menuitem label="1024" value="1024"/>
  38.           <menuitem label="2048" value="2048"/>
  39.           <menuitem label="4096" value="4096"/>
  40.           <menuitem label="8192" value="8192"/>
  41.         </menupopup>
  42.       </menulist>
  43.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('page_size');"/>
  44.     </hbox>
  45.  
  46.     <hbox>
  47.       <label value="&page_count;" class="dbinfo"/>
  48.       <textbox id="pr-page_count" style="width:10ex" readonly="true"/>
  49.     </hbox>
  50.  
  51.     <hbox>
  52.       <label value="&freelist_count;" class="dbinfo"/>
  53.       <textbox id="pr-freelist_count" style="width:10ex" readonly="true"/>
  54.     </hbox>
  55.  
  56.     <hbox>
  57.       <label value="&max_page_count;" class="dbinfo"/>
  58.       <textbox id="pr-max_page_count" type="number" value=""/>
  59.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('max_page_count');"/>
  60.     </hbox>
  61.    </groupbox>
  62.  
  63.    <groupbox>
  64.     <caption label="&cache_size;"/>
  65.     <hbox>
  66.       <label value="&cache_size;" class="dbinfo"/>
  67.       <textbox id="pr-cache_size" type="number" value=""/>
  68.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('cache_size');"/>
  69.     </hbox>
  70.  
  71.     <hbox>
  72.       <label value="&default_cache_size;" class="dbinfo"/>
  73.       <textbox id="pr-default_cache_size" type="number" value=""/>
  74.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('default_cache_size');"/>
  75.     </hbox>
  76.    </groupbox>
  77.  
  78.    <groupbox>
  79.     <caption label="&journals;"/>
  80.     <hbox>
  81.       <label value="&journal_mode;" class="dbinfo"/>
  82.       <menulist id="pr-journal_mode">
  83.         <menupopup>
  84.           <menuitem label="delete" value="delete"/>
  85.           <menuitem label="truncate" value="truncate"/>
  86.           <menuitem label="persist" value="persist"/>
  87.           <menuitem label="memory" value="memory"/>
  88.           <menuitem label="off" value="off"/>
  89.         </menupopup>
  90.       </menulist>
  91.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('journal_mode');"/>
  92.     </hbox>
  93.  
  94.     <hbox>
  95.       <label value="&journal_size_limit;" class="dbinfo"/>
  96.       <textbox id="pr-journal_size_limit" type="number" value=""/>
  97.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('journal_size_limit');"/>
  98.     </hbox>
  99.    </groupbox>
  100.  
  101.    <groupbox>
  102.     <caption label="&others;"/>
  103.     <hbox>
  104.       <label value="&auto_vacuum;" class="dbinfo"/>
  105.       <menulist id="pr-auto_vacuum">
  106.         <menupopup>
  107.           <menuitem label="&None;" value="0"/>
  108.           <menuitem label="&Full;" value="1"/>
  109.           <menuitem label="&Incremental;" value="2"/>
  110.         </menupopup>
  111.       </menulist>
  112.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('auto_vacuum');"/>
  113.     </hbox>
  114.  
  115. <!-- can set the value but not get it; see pragma help at sqlite.org
  116.     <hbox>
  117.       <label value="&case_sensitive_like;" class="dbinfo"/>
  118.       <menulist id="pr-case_sensitive_like">
  119.         <menupopup>
  120.           <menuitem label="&On;" value="1"/>
  121.           <menuitem label="&Off;" value="0"/>
  122.         </menupopup>
  123.       </menulist>
  124.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('case_sensitive_like');"/>
  125.     </hbox>
  126. -->
  127.  
  128.     <hbox>
  129.       <label value="&count_changes;" class="dbinfo"/>
  130.       <menulist id="pr-count_changes">
  131.         <menupopup>
  132.           <menuitem label="&On;" value="1"/>
  133.           <menuitem label="&Off;" value="0"/>
  134.         </menupopup>
  135.       </menulist>
  136.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('count_changes');"/>
  137.     </hbox>
  138.  
  139.     <hbox>
  140.       <label value="&empty_result_callbacks;" class="dbinfo"/>
  141.       <menulist id="pr-empty_result_callbacks">
  142.         <menupopup>
  143.           <menuitem label="&On;" value="1"/>
  144.           <menuitem label="&Off;" value="0"/>
  145.         </menupopup>
  146.       </menulist>
  147.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('empty_result_callbacks');"/>
  148.     </hbox>
  149.  
  150.     <hbox>
  151.       <label value="&encoding;" class="dbinfo"/>
  152.       <menulist id="pr-encoding">
  153.         <menupopup>
  154.           <menuitem label="&UTF8;" value="UTF-8"/>
  155.           <menuitem label="&UTF16;" value="UTF-16"/>
  156.           <menuitem label="&UTF16le;" value="UTF-16le"/>
  157.           <menuitem label="&UTF16be;" value="UTF-16be"/>
  158.         </menupopup>
  159.       </menulist>
  160.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('encoding');"/>
  161.     </hbox>
  162.  
  163.     <hbox id="hb-pr-foreign_keys" hidden="true">
  164.       <label value="&foreign_keys;" class="dbinfo"/>
  165.       <menulist id="pr-foreign_keys">
  166.         <menupopup>
  167.           <menuitem label="&On;" value="1"/>
  168.           <menuitem label="&Off;" value="0"/>
  169.         </menupopup>
  170.       </menulist>
  171.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('foreign_keys');"/>
  172.     </hbox>
  173.  
  174.     <hbox>
  175.       <label value="&fullfsync;" class="dbinfo"/>
  176.       <menulist id="pr-fullfsync">
  177.         <menupopup>
  178.           <menuitem label="&On;" value="1"/>
  179.           <menuitem label="&Off;" value="0"/>
  180.         </menupopup>
  181.       </menulist>
  182.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('fullfsync');"/>
  183.     </hbox>
  184.  
  185.     <hbox>
  186.       <label value="&legacy_file_format;" class="dbinfo"/>
  187.       <menulist id="pr-legacy_file_format">
  188.         <menupopup>
  189.           <menuitem label="&On;" value="1"/>
  190.           <menuitem label="&Off;" value="0"/>
  191.         </menupopup>
  192.       </menulist>
  193.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('legacy_file_format');"/>
  194.     </hbox>
  195.  
  196.     <hbox>
  197.       <label value="&locking_mode;" class="dbinfo"/>
  198.       <menulist id="pr-locking_mode">
  199.         <menupopup>
  200.           <menuitem label="&Normal;" value="normal"/>
  201.           <menuitem label="&Exclusive;" value="exclusive"/>
  202.         </menupopup>
  203.       </menulist>
  204.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('locking_mode');"/>
  205.     </hbox>
  206.  
  207.     <hbox>
  208.       <label value="&read_uncommitted;" class="dbinfo"/>
  209.       <menulist id="pr-read_uncommitted">
  210.         <menupopup>
  211.           <menuitem label="&On;" value="1"/>
  212.           <menuitem label="&Off;" value="0"/>
  213.         </menupopup>
  214.       </menulist>
  215.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('read_uncommitted');"/>
  216.     </hbox>
  217.  
  218.     <hbox id="hb-pr-recursive_triggers" hidden="true">
  219.       <label value="&recursive_triggers;" class="dbinfo"/>
  220.       <menulist id="pr-recursive_triggers">
  221.         <menupopup>
  222.           <menuitem label="&On;" value="1"/>
  223.           <menuitem label="&Off;" value="0"/>
  224.         </menupopup>
  225.       </menulist>
  226.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('recursive_triggers');"/>
  227.     </hbox>
  228.  
  229.     <hbox>
  230.       <label value="&reverse_unordered_selects;" class="dbinfo"/>
  231.       <menulist id="pr-reverse_unordered_selects">
  232.         <menupopup>
  233.           <menuitem label="&On;" value="1"/>
  234.           <menuitem label="&Off;" value="0"/>
  235.         </menupopup>
  236.       </menulist>
  237.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('reverse_unordered_selects');"/>
  238.     </hbox>
  239.  
  240.     <hbox>
  241.       <label value="&full_column_names;" class="dbinfo"/>
  242.       <menulist id="pr-full_column_names">
  243.         <menupopup>
  244.           <menuitem label="&On;" value="1"/>
  245.           <menuitem label="&Off;" value="0"/>
  246.         </menupopup>
  247.       </menulist>
  248.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('full_column_names');"/>
  249.     </hbox>
  250.  
  251.     <hbox>
  252.       <label value="&short_column_names;" class="dbinfo"/>
  253.       <menulist id="pr-short_column_names">
  254.         <menupopup>
  255.           <menuitem label="&On;" value="1"/>
  256.           <menuitem label="&Off;" value="0"/>
  257.         </menupopup>
  258.       </menulist>
  259.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('short_column_names');"/>
  260.     </hbox>
  261.  
  262.     <hbox>
  263.       <label value="&synchronous;" class="dbinfo"/>
  264.       <menulist id="pr-synchronous">
  265.         <menupopup>
  266.           <menuitem label="&Off;" value="0"/>
  267.           <menuitem label="&Normal;" value="1"/>
  268.           <menuitem label="&Full;" value="2"/>
  269.         </menupopup>
  270.       </menulist>
  271.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('synchronous');"/>
  272.     </hbox>
  273.    </groupbox>
  274.  
  275.    <groupbox>
  276.     <caption label="&temp_store;"/>
  277.     <hbox>
  278.       <label value="&temp_store;" class="dbinfo"/>
  279.       <menulist id="pr-temp_store">
  280.         <menupopup>
  281.           <menuitem label="&Default;" value="0"/>
  282.           <menuitem label="&File;" value="1"/>
  283.           <menuitem label="&Memory;" value="2"/>
  284.         </menupopup>
  285.       </menulist>
  286.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('temp_store');"/>
  287.     </hbox>
  288.  
  289.     <hbox>
  290.       <label value="&temp_store_directory;" class="dbinfo"/>
  291.       <textbox id="pr-temp_store_directory" value=""/>
  292.       <button label="&change;" oncommand="SQLiteManager.changeDbSetting('temp_store_directory');"/>
  293.     </hbox>
  294.    </groupbox>
  295.   </vbox>
  296.   </notificationbox>
  297.   </tabpanel>
  298. </overlay>
  299.